package com.zkthink.ceres.member.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;

/**
 * FileName: IntegralSaveDTO
 * Author:   Pepis
 * Date:   2020  2020/8/29 15:52
 * Description:
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "IntegralSaveDTO", description = "会员积分 保存对象")
public class IntegralSaveDTO {
    private static final long serialVersionUID = 1L;
    /**
     * 会员ID
     */
    @ApiModelProperty(value = "会员ID")
    @TableField("mid")
    @Excel(name = "会员ID")
    @NotNull(message = "会员id不能为空")
    private Long mid;

    /**
     * 积分值
     */
    @ApiModelProperty(value = "积分值")
    @TableField("integral_num")
    @Excel(name = "积分值")
    private Long integralNum;

    /**
     * 积分类型
     */
    @ApiModelProperty(value = "积分类型 1:购物返积分 2:分享得积分")
    @TableField("type")
    @Excel(name = "积分类型")
    private Integer type;
}
